package com.ali.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

//指定表
@TableName(value = "boot_transactional_second")
@Data
public class TransactionalSecond implements Serializable {
    //指定主键，value：数据库字段，type：主键生成策略
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    private String content;
}